﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BCCommon.ExceptionExtensions
{
    /// <summary>
    /// 上传文件异常
    /// </summary>
    public class UploadFileException : ArgumentException
    {
        private string error;
        private Exception innerException;
        public string Error { get => error; set => error = value; }
        public Exception InnerException1 { get => innerException; set => innerException = value; }
        public UploadFileException()
        {
        }

        public UploadFileException(string message) : base(message)
        {
            this.Error = message;
        }

        public UploadFileException(string message, Exception innerException) : base(message, innerException)
        {
            this.InnerException1 = innerException;
            this.Error = message;
        }
    }
}
